<?php get_header(); ?>
<!-- content -->
    <section class="main">
		<nav class="main-nav">
			<ul>						
				<?php 
					$taxonomies = 'building-type';
					$args  = array('hide_empty'=>false);
					$terms = get_terms( $taxonomies, $args ) ;
					foreach($terms as $term){							
						if( $term->parent == 0 && get_tax_meta($term->term_id,'building_tax_show_home') == 1){
							?>
						<li <?php echo checkActiveMenuHome($term->term_id)?>><a href="<?php echo get_term_link($term,$taxonomies);?>"><?php echo $term->name;?></a></li>
						<li class="line-nav"></li>
					<?php
						}
					}
				?>
				<?php $pageid = 58 ;if(ICL_LANGUAGE_CODE == 'vi') $pageid = 76 ;?>
			   <li><a href="<?php echo get_page_link($pageid)?>">
					<?php echo get_page($pageid)->post_title; ?>
				</a></li>
			</ul>
		</nav>
    	<?php get_sidebar(); ?>
        
        <!-- main content -->
        <section class="main-content">
			<!-- discrumble-->
        	<section class="discrumble">
				<?php if(function_exists('bcn_display')){ bcn_display();}?>
			</section>
			<section class="col-main">
				<section class="details">
            	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

						<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
							
							<h2><?php the_title(); ?></h2>
							
							<?php include (TEMPLATEPATH . '/inc/meta.php' ); ?>

							<div class="entry">
								
								<?php the_content(); ?>

								<?php wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); ?>
								
								<?php the_tags( 'Tags: ', ', ', ''); ?>

							</div>
							
							<?php edit_post_link('Edit this entry','','.'); ?>
							
						</div>

					<?php comments_template(); ?>

					<?php endwhile; endif; ?>
				</section>                       
			</section>   
        </section>
        <!-- end main content -->
        <div class="clear"></div>
    </section>
    <!-- content -->

<?php get_footer(); ?>